package com.fastloan.jn.mgt.customer.service;

import com.fastloan.jn.mgt.customer.model.JnCustomerTransition;
import com.fastloan.jn.mgt.customer.model.vo.JnCustomerTransitionVo;
import com.kawins.base.BaseService;
import com.kawins.result.ResultTo;

import java.util.List;
import java.util.Map;

/**
 * @author chenkai
 *         createTime 2017-10-2017/10/18 9:38
 */
public interface JnCustomerTransitionService extends BaseService<JnCustomerTransition> {

    /**
     * 查询客户移交申请信息
     * @param map
     * @return
     */
    List<JnCustomerTransitionVo> customerTransitionApply(Map<String, Object> map);


    /**
     * 查询客户移交审批信息
     * @param map
     * @return
     */
    List<JnCustomerTransitionVo> customerTransitionApprove(Map<String, Object> map);

    /**
     * 客户移交申请
     * @param customerTransition
     * @return
     */
    ResultTo apply(JnCustomerTransition customerTransition);

    /**
     * 审批通过
     * @param customerId
     * @return
     */
    ResultTo pass(String customerId);

    /**
     * 审批拒绝
     * @param customerId
     * @return
     */
    ResultTo reject(String customerId);
}
